package com.example.captchademo2.demos.web.controller;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Q
 * @create 2025-06-04-17:16
 */
@Slf4j
@RestController
@RequestMapping("/logger")
public class LoggerController {
    private static Logger logger = LoggerFactory.getLogger(LoggerController.class);
    public void print() {
        System.out.println("打印日志");
        log.info("打印日志");
        logger.info("打印日志");
        log.error("错误");
    }
}
